package com.dongdongshop.mapper;

import com.dongdongshop.pojo.GoodsVO;
import com.dongdongshop.pojo.TbGoods;
import com.dongdongshop.pojo.TbGoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbGoodsMapper {
    int countByExample(TbGoodsExample example);

    int deleteByExample(TbGoodsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TbGoods record);

    int insertSelective(TbGoods record);

    List<TbGoods> selectByExample(TbGoodsExample example);

    TbGoods selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TbGoods record, @Param("example") TbGoodsExample example);

    int updateByExample(@Param("record") TbGoods record, @Param("example") TbGoodsExample example);

    int updateByPrimaryKeySelective(TbGoods record);

    int updateByPrimaryKey(TbGoods record);


    void saveGoodsReturnId(TbGoods tbGoods);
    //商家 展示 本家及未删除商品
    List<GoodsVO> getGoodSList(@Param("startIndex") int startIndex, @Param("pageSize") Integer pageSize, @Param("t") TbGoods tbGoods);
    //运营商 查所有
    List<GoodsVO> getGoodsListAll(@Param("startIndex") int startIndex, @Param("pageSize") Integer pageSize, @Param("t") TbGoods tbGoods);

    int selectCounts();

    int UpdateGoodsStatusById(@Param("ids") Long[] ids);

    int rejectGoodsStatusById(@Param("ids") Long[] ids);

    void updateStatusByIds(@Param("ids") Long[] ids);

    void deleteBath(Long[] ids);
}